package com.ycfmedical.bed;

/**
 * 常用的常量
 *
 * Created by Egoist on 2017/1/4.
 */

public class Constants
{
    // ============== 设备参数============//
    public static int screenWidth;
    public static int screenHeight;
    public static float density;
    public final static String bedId = "13";
    public final static String zgbId = "14";
    public final static String nurseId = "64";
    public final static String medicalCard = "";
    public final static String fhHeader = "ABBCCD";
    public final static String wrongOrderMsg = "ABBCCD0000000000000000000000000000000000000000";

    //存储默认体温指令（角度方式）
    public static String DEFAULT_POST_SLEEP = "ABBCCD0000220000000000000000000000000000000000";
    public static String DEFAULT_POST_RELAXATION = "ABBCCD0000220000000F00000000001400000000000000";
    public static String DEFAULT_POST_REPAST = "ABBCCD0000220000002D00000000000000000000000000";
    public static String DEFAULT_POST_WORK = "ABBCCD0000220000002400000000000A00000000000000";
    //============== WIFI操作所需变量============
    public final static String wifiIpAddressed ="192.168.1.240";
    public final static int comPort =6543;
    //================当前床体权限状态===========
    public static String lockState = "C8";
    // ============== 通用返回码 ============//
    public static final int RESULT_WEIGHT = 2;
    public static final int RESULT_OK = 0;
    public static final int RESULT_REFRESH = 1;

    // ============== 请求历史数据参数============//
    public static final String NEWTIME = "2017_03_28";              // 1号床历史数据时间参数
    public static final String NEWID = "4574759635022162";         // 1号床历史数据用户id参数

    public static final String FORMERLYTIME = "2017_03_21";             // 1号床昨天历史数据时间参数
    public static final String FORMERLYID = "9462757390460886";         // 1号床昨天历史数据用户id参数


    // ============== 一次取回多少条消息 参数:rows============//
    public static final int PAGE_SIZE_MUL = 8;

    // ============== 最多少页 参数:page============//
    public static final int DEFAULT_PAGE = 1;
    public static final int MAX_PAGE = 10;

    // ============== Event事件TAG============//
    public static final int EVENT_LOGIN = 100;
    public static final int EVENT_REGISTER = EVENT_LOGIN + 1;

    // ============== 数据库，SP字段，表名 ============//
    public static final String SHARE_PREF_XMLNAME = "ycf_pref";
    public static final String SHARE_IM_KEY = "key_im";
    public static final String SHARE_HOMETAB_KEY = "key_hometab";
    public static final String SHARE_USER_KEY = "key_user";
    public static final String DB_NAME = "db_cloud_medical";

    // ============== 数据库，初始化页面的Sp值 ============//
    public static final int NUM_DEFAULT = 0;
    public static final int NUM_CONTROIL = NUM_DEFAULT ;
    public static final int NUM_USERHOME = NUM_CONTROIL + 1;
    public static final int NUM_HIS = NUM_USERHOME + 1;
    public static final int NUM_PHYCHARGE = NUM_HIS + 1;
    public static final int NUM_LIFEDATA = NUM_PHYCHARGE + 1;
    public static final int NUM_NURSE_HELP = NUM_LIFEDATA + 1;
    public static final int NUM_ENTERTAIN = NUM_NURSE_HELP + 1;
    public static final int NUM_HEALTHNEWS = NUM_ENTERTAIN + 1;

    // ============== 呼叫帮助 TAG标签 ============//
    public static final int CALL_HELP_DEFAULT = 10;
    public static final int CALL_HELP_COFFEE = CALL_HELP_DEFAULT + 1;
    public static final int CALL_HELP_FOOD = CALL_HELP_COFFEE + 1;
    public static final int CALL_HELP_INFUSIONS = CALL_HELP_FOOD + 1;
    public static final int CALL_HELP_NURES = CALL_HELP_INFUSIONS + 1;
    public static final int CALL_HELP_WC = CALL_HELP_NURES + 1;
    public static final int CALL_HELP_OTHER = CALL_HELP_WC + 1;


    // 定时提醒KEY
    public static final String CONTROL_TIMING = "TIMINGSAVE";

    // ============== Intent 传递标签 ============//
    public static final String MUSICLIST = "音乐列表";
    public static final String HEALTHNEWS = "健康咨询";

    // ============== 生命体征图表数据密度*X轴============//
    public static final int X_HEART_CONTENT = 50;
    public static final int X_TEMPERATURE_CONTENT = 20;
    public static final int X_BREATHE_CONTENT = 20;
    public static final int X_SLEEP_CONTENT = 80;

    // ============== 生命体征图表数据密度*Y轴============//
      public static final int Y_HEART_CONTENT = 120;
    public static final int Y_TEMPERATURE_CONTENT = 42;
    public static final int Y_BREATHE_CONTENT = 50;
    public static final int Y_SLEEP_CONTENT = 100;

    // ============== 病历卡数据类型 ============//
    public static final int BED_HEART = 0;          //心率
    public static final int BED_TEMPERATURE = 1;    //体温
    public static final int BED_BREATHE = 2;        //呼吸
    public static final int BED_WEIGHT = 3;         //体重
    public static final int BED_WIFE = 4;           //网络信号

    /** 用户信息相关*/
    public static String USER_NAME = "姓名";
    public static String AGE = "年龄";
    public static String SEX = "性别";
    public static String GUOMIN_HISTORY = "过敏史";
    public static String DISEASE = "病症";
    public static String DOCTOR_NAME = "主治医生";
    public static String NURSE_NAME = "主管护士";
    public static String SYMPTOM = "症状";
    public static String USER_PHONE = "患者号码";
    public static String EMERGENT_PHONE = "紧急号码";
    public static String TREATMENT = "养护措施";//
    public static String TREAMENT_ARRANGE = "治疗安排";
    public static String COUNT_BAlANCE = "余额";
    public static String HEIGHT = "身高";
    public static String PHONE_NUMBER="联系方式";
    public static String DOUBLE_TAB="\t\t";
    public static int TYPE_DOCTOR=1;
    public static int TYPE_NURSE=2;

    /**
     * fragment 标签
     */
    public static final String TAG_HIS = "hisFragment";
    public static final String TAG_BED_CONTROL = "bedControl";
    public static final String TAG_USER_CENTER= "userCenter";
    public static final String TAG_CALL_NURSE= "callNurse";
    public static final String TAG_VITAL = "vitalSign";
    public static final String TAG_PHYSICIAN_CHARGE = "physicianCharge";
    public static final String TAG_ENTERTAIN= "Entertain";
    public static final String TAG_HEALTH_NEWS = "healthNews";
    public static final int POSITION_CHAT = 4;
    /*His 系统界面相关*/
    public static final int  BILL_RECORDS = 1;//费用明细
    public static final int  BILL_RESULT = 2;//缴费明细
    public static final String  TEMPSYMBOM  = "℃";//温度单位
}
